<template>
	<view class="table">
		<view v-if="data.length" class="table-box table-box-header">
			<view class="one">属性名</view>
			<view class="two">可选值/描述</view>
		</view>
		<view v-for="(item,index) in data" class="table-box">
			<view class="one">{{item.parameter}}</view>
			<view class="two">{{item.values}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			data:{
				typeof:Array,
				default:()=>[]
			}
		},
	}
</script>

<style lang="scss" scoped>
	.table{
		border: 1px solid #dfe2e5;
		border-top: 0;
		.table-box-header{
			background-color: #f7f7f7;
			font-weight: bold;
		}
		.table-box{
			display: flex;
			font-size: 26rpx;
			
			border-top: 1px solid #dfe2e5;
			>view{
				padding:12rpx 24rpx;
				flex-shrink: 0;
				word-break: break-all;
				box-sizing: border-box;
			}
			.one{
				width: 30%;
			}
			.two{
				width: 70%;
				border-left: 1px solid #dfe2e5;
			}
		}
	}
</style>